package com.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import java.lang.reflect.InvocationTargetException;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.beanutils.BeanUtils;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.enums.IdType;


/**
 * 学生活动项目
 * 数据库通用操作实体类（普通增删改查）
 *
 * @author
 * @email
 * @date 2024-03-01 11:30:27
 */
@TableName("xueshengyundongxiangmu")
public class XueshengyundongxiangmuEntity<T> implements Serializable {
    private static final long serialVersionUID = 1L;


    public XueshengyundongxiangmuEntity() {

    }

    public XueshengyundongxiangmuEntity(T t) {
        try {
            BeanUtils.copyProperties(this, t);
        } catch (IllegalAccessException | InvocationTargetException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
    }

    /**
     * 主键id
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 活动名称
     */
    private String designation;

    /**
     * 活动类型
     */

    private String yundongmingcheng;

    /**
     * 图片
     */

    private String tupian;

    /**
     * 比赛时间
     */

    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat
    private Date bisaishijian;

    /**
     * 参赛人数
     */

    private String cansairenshu;

    /**
     * 参赛地点
     */

    private String cansaididian;

    /**
     * 详情介绍
     */

    private String xiangqingjieshao;

    /**
     * 赞
     */

    private Integer thumbsupnum;

    /**
     * 踩
     */

    private Integer crazilynum;

    /**
     * 最近点击时间
     */

    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat
    private Date clicktime;

    /**
     * 浏览量
     */

    private Integer clicknum;

    /**
     * 评论数
     */

    private Integer discussnum;

    /**
     * 收藏数
     */

    private Integer storeupnum;


    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat
    private Date addtime;

    public Date getAddtime() {
        return addtime;
    }

    public void setAddtime(Date addtime) {
        this.addtime = addtime;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getDesignation() {
        return designation;
    }


    public void setDesignation(String designation) {
        this.designation = designation;
    }


    /**
     * 设置：活动类型
     */
    public void setYundongmingcheng(String yundongmingcheng) {
        this.yundongmingcheng = yundongmingcheng;
    }

    /**
     * 获取：活动类型
     */
    public String getYundongmingcheng() {
        return yundongmingcheng;
    }

    /**
     * 设置：图片
     */
    public void setTupian(String tupian) {
        this.tupian = tupian;
    }

    /**
     * 获取：图片
     */
    public String getTupian() {
        return tupian;
    }

    /**
     * 设置：比赛时间
     */
    public void setBisaishijian(Date bisaishijian) {
        this.bisaishijian = bisaishijian;
    }

    /**
     * 获取：比赛时间
     */
    public Date getBisaishijian() {
        return bisaishijian;
    }

    /**
     * 设置：参赛人数
     */
    public void setCansairenshu(String cansairenshu) {
        this.cansairenshu = cansairenshu;
    }

    /**
     * 获取：参赛人数
     */
    public String getCansairenshu() {
        return cansairenshu;
    }

    /**
     * 设置：参赛地点
     */
    public void setCansaididian(String cansaididian) {
        this.cansaididian = cansaididian;
    }

    /**
     * 获取：参赛地点
     */
    public String getCansaididian() {
        return cansaididian;
    }

    /**
     * 设置：详情介绍
     */
    public void setXiangqingjieshao(String xiangqingjieshao) {
        this.xiangqingjieshao = xiangqingjieshao;
    }

    /**
     * 获取：详情介绍
     */
    public String getXiangqingjieshao() {
        return xiangqingjieshao;
    }

    /**
     * 设置：赞
     */
    public void setThumbsupnum(Integer thumbsupnum) {
        this.thumbsupnum = thumbsupnum;
    }

    /**
     * 获取：赞
     */
    public Integer getThumbsupnum() {
        return thumbsupnum;
    }

    /**
     * 设置：踩
     */
    public void setCrazilynum(Integer crazilynum) {
        this.crazilynum = crazilynum;
    }

    /**
     * 获取：踩
     */
    public Integer getCrazilynum() {
        return crazilynum;
    }

    /**
     * 设置：最近点击时间
     */
    public void setClicktime(Date clicktime) {
        this.clicktime = clicktime;
    }

    /**
     * 获取：最近点击时间
     */
    public Date getClicktime() {
        return clicktime;
    }

    /**
     * 设置：浏览量
     */
    public void setClicknum(Integer clicknum) {
        this.clicknum = clicknum;
    }

    /**
     * 获取：浏览量
     */
    public Integer getClicknum() {
        return clicknum;
    }

    /**
     * 设置：评论数
     */
    public void setDiscussnum(Integer discussnum) {
        this.discussnum = discussnum;
    }

    /**
     * 获取：评论数
     */
    public Integer getDiscussnum() {
        return discussnum;
    }

    /**
     * 设置：收藏数
     */
    public void setStoreupnum(Integer storeupnum) {
        this.storeupnum = storeupnum;
    }

    /**
     * 获取：收藏数
     */
    public Integer getStoreupnum() {
        return storeupnum;
    }

}
